package com.ls.controller.rule.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class BindRuleIdModel {
    /**
     * 规则id
     */
    @NotNull(message = "规则id不得为空")
    private Long ruleId;

    @NotNull(message = "启用状态不能为空")
    @Max(value = 1)
    @Min(value = 0)
    private Integer validFlag;
}
